/*
 * @version: 
 * @Author: yu
 * @Date: 2023-06-26 10:19:05
 * @LastEditors: Andy
 * @LastEditTime: 2023-07-06 18:05:52
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//全局引入axios
import axios from 'axios'
import '../node_modules/echarts/theme/roma.js'
import '../node_modules/echarts/theme/dark.js'
//引入 Element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//引入全局css样式
import './assets/css/reset.css'
//引入全局公共组件
import comComponents from './components'

// 全局引入echarts
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts;
Vue.prototype.$axios = axios;

for (let key in comComponents) {
  Vue.component(key, comComponents[key])
}
//引入全局过滤器
import comFilter from './filters'
for (let key in comFilter) {
  Vue.filter(key, comFilter[key])
}

axios.defaults.baseURL = 'http://localhost:3001';



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
